package com.neusoft.adminweb.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * (Admin)实体类
 *
 * @author makejava
 * @since 2020-11-10 16:46:47
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
@Accessors(chain = true)
public class Admin implements Serializable {

    private Integer id;

    private String account;

    private String password;
    /**
     * 0：系统管理员，1：宿舍管理员
     */
    private Integer type;

    private Date regDate;
    /**
     * 1：启用，0：停用
     */
    private Integer state;

    private Date lastLoginTime;

    private String name;

//    private Integer dormId;
    /**
     * 性别：0：女，1：男
     */
    private Integer gender;

    private String phone;

    private Integer dormId;

    private Dorm dorm;

}